﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Exercise3
{
    internal class Program
    {
        static void Main(string[] args)
        {
            for (int i = 100; i <= 999; i++)
            {
                int number = i;
                int sum = 0;

                while (number > 0)
                {
                    int digit = number % 10;
                    sum += digit * digit * digit;
                    number /= 10;
                }

                if (sum == i)
                {
                    Console.WriteLine(i);
                }
            }
        }
    }
}
